//
//  TopicHeader.m
//  MHO
//
//  Created by papo on 4/12/14.
//  Copyright (c) 2014 maihoang. All rights reserved.
//

#import "TopicHeader.h"


@interface TopicHeader()

@property (weak, nonatomic) IBOutlet UILabel *topicNameLb;
@end

@implementation TopicHeader

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

- (void) awakeFromNib {
    
}

- (void)setTopicName:(NSString *)name {
    self.topicNameLb.text = [NSString stringWithFormat:@"%@(30 app, game)", name.uppercaseString];
}

+ (TopicHeader*)viewFromNib {
    return [[[NSBundle mainBundle] loadNibNamed:@"TopicHeader" owner:self options:nil] objectAtIndex:0];
}

@end
